<?php 
	ob_start();
	session_start();
        if(!isset($_SESSION['FLASH_INTRO'])){
		$_SESSION['FLASH_INTRO'] = true;
		require('index2.php');
		exit(0);
	}
        require("cons/cons.php");
        require_once 'librarys/funs/class_user.php';
        $t= new tin();
        $lang='vi';
        if(isset($_COOKIE["lang"])) $lang=$_COOKIE["lang"];
        else if(isset($_SESSION["lang"])) $lang=$_SESSION["lang"];
        $view='';
        $idseo=-1;
        if(isset ($_GET['view'])) $view=$_GET['view'];
        if(isset ($_GET['id'])) $idseo=$_GET['id'];
        require_once 'librarys/funs/seo_tour.php';
        $seo_tour1 = new seo_tour();
        $seo1=$seo_tour1->seo($view,$idseo,$lang);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?=$seo1['title']; ?></title>
<meta name="description" content="<?=$seo1['desc']; ?>" />
<meta name="keywords" content="<?=$seo1['key']; ?>" />
<meta name="copyright" content="thynguyettravel"/>

<link href="<?php echo $rootURL; ?>templates/css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $rootURL; ?>templates/nivo-slider.css" rel="stylesheet" type="text/css" />

<script src="<?php echo $rootURL; ?>scripts/script.js" type="text/javascript"></script>
<script src="<?php echo $rootURL; ?>scripts/jquery-1.4.4.js" type="text/javascript"></script>
<script src="scripts/jquery.cookie.js" type="text/javascript"></script>

<script type="text/javascript" src="<?php echo $rootURL; ?>scripts/jquery.nivo.slider.pack.js"></script>
<script>
    function chuyenngonngu(lang){
	$.cookie("lang",lang, {exprire:0,path:'/'}) ;
   	window.location.reload();
}
    $(document).ready(function() {
	//cao=$(".main_left_details_form").first().height();
        //alert(cao);
});
</script>
</head>
<body>
	<div class="container">
		<div class="banner">
                    <img src="imgs/logo.png" style="margin-left: 30px;" ></img>
                    <div id="language">
        	Tiếng Việt <img style="cursor:pointer" src="imgs//vietnamese.png" onclick="chuyenngonngu('vi')" />&nbsp; English <img style="cursor:pointer" src="imgs//english.png" onclick="chuyenngonngu('en')" />
        </div>
		</div>
		<div class="k_menu">
	    	<? include 'librarys/incs/menu.php';?>
	    </div>
	    <div class="main">
	    	<div class="main_left">
                        <!--NivoSlider-->
                        <?php include 'librarys/incs/thuvienanh.php';?>
                        <?php
                        if($view=='tour_details') include 'librarys/incs/details.php';
                        else if($view=='vemaybay') include 'librarys/incs/vemaybay.php';
                        else if($view=='tour_root') include 'librarys/incs/tour_root.php';
                        else if($view=='tour_cap1') include 'librarys/incs/tour_cap1.php';
                        else if($view=='tour_cap2') include 'librarys/incs/tour_cap2.php';
                        else if($view=='tintuc') include 'librarys/incs/tin_tour_all.php';
                        else if($view=='tin_chitiet') include 'librarys/incs/tin_chitiet.php';
                        else if($view=='gioithieu') include 'librarys/incs/gioithieu_tuyendung.php';
                        else if($view=='tuyendung') include 'librarys/incs/gioithieu_tuyendung.php';
                        else if($view=='lienhe') include 'librarys/incs/lienhe.php';
                        else if($view=='field') include 'librarys/incs/field.php';
                        else include 'librarys/incs/tour_main.php';
                        ?>
	    	</div>
	    	<div class="main_right">
                    <?php
                            include 'librarys/incs/lienhetructuyen.php';
                            include 'librarys/incs/sidebar_right_infobank.php';
                            include 'librarys/incs/tin_tour.php';
                            include 'librarys/incs/tigia_thoitiet.php';
                            include 'librarys/incs/sidebar_right_partner.php';
                    ?>
	    	</div>
	    </div>
	    <?php include 'librarys/incs/footer.php'; ?>
	</div>
</body>
</html>
